const {
    Schema,
    SchemaTypes
} = require('../schema');

class AreaDelivery extends Schema {
    PropertyModelDataTemplate () {
        return {
            areaId: { type: SchemaTypes.ObjectId, required: true },
            limitPrice: { type: SchemaTypes.Number, required: true },
            deliveryFee: { type: SchemaTypes.Number, required: true },
            isEnable: { type: SchemaTypes.Boolean, required: true, default: true },
            createTime: { type: SchemaTypes.Number, required: true, default: require('../../module/tool/time').getCurrentTimestamp() }
        };
    }
}

module.exports = AreaDelivery;
